﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace PSL.ST
{
    /// <summary>
    ///  Defines the types of brackets
    /// </summary>
    public enum BracketType
    {
        Open = 0,
        Close = 1
    }

    internal class BracketNode : TreeNode
    {
        public BracketNode(TreeNode Parent)
            : base(Parent, TreeNodeType.DeclareFunction)
        {

        }

        /// <summary>
        /// Type of Bracket
        /// </summary>
        public BracketType Type
        {
            get;
            set;
        }

        public override TreeNode CloneNode()
        {
            BracketNode returnNode = new BracketNode(null);

            returnNode.Type = this.Type;

            return returnNode;
        }

        public override dynamic Execute(PSLEngine Engine)
        {
            return null;
        }
    }
}
